﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Domain.Common.Models;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace WaterRevenueMS.Domain.ViewModels.Charge.MeterCharge
{
    public class MeterChargeModel : EntityCommon
    {
        public MeterChargeModel()
        {
            Search = new SearchModel();
            {

            };
            HeadString = new string[9];
            HeadString[0] = "流水号";
            HeadString[1] = "用户地址";
            HeadString[2] = "用户编号";
            HeadString[3] = "用户姓名";
            HeadString[4] = "本期读数";
            HeadString[5] = "本期用量";
            HeadString[6] = "本次计费";
            HeadString[7] = "账户余额";
            HeadString[8] = "缴费金额";
        }

        public int Id { get; set; }

        [Display(Name = "备注")]
        public string Bei_Z { get; set; }

        public int User_ID { get; set; }
        public string Liu_SH { get; set; }

        public DateTime? CreateDT { get; set; }
        public DateTime? ReviseDT { get; set; }

        [Display(Name = "用户名")]
        public string UserName { get; set; }

        [Display(Name = "用户余额")]
        public float Yong_HYE { get; set; }


        [Display(Name = "本期读数")]
        public float Ben_QDS { get; set; }
        [Display(Name = "上期读数")]
        public float Shang_QDS { get; set; }
        [Display(Name = "本期用量")]
        public float Ben_QYL { get; set; }
        [Display(Name = "合计用量")]
        public float He_JYL { get; set; }
        [Display(Name = "本次计费")]
        public float Ben_CJF { get; set; }

        [Display(Name = "缴费金额")]
        public float Jiao_FJE { get; set; }

        public float Up_YE { get; set; }

        [Display(Name = "缴费类型")]
        public float Jiao_FLX { get; set; }

        [Display(Name = "缴费状态")]
        public int Jiao_FZT { get; set; }

        [Display(Name = "收费员")]
        public string Shou_FY { get; set; }

        [Display(Name = "用户住址")]
        public string Yong_HZZ { get; set; }

        public SearchModel Search { get; set; }

       public string[] HeadString{ get; set; }


    }
    public class SearchModel
    {
        public SearchModel()
        {

        }

        public int Id { get; set; }

        [Display(Name = "备注")]
        public string Bei_Z { get; set; }

        public int User_ID { get; set; }
        public string Liu_SH { get; set; }
        public int? Cao_ZLX { get; set; }



        public DateTime? CreateDT { get; set; }
        public DateTime? ReviseDT { get; set; }


        [Display(Name = "用户名")]
        public string UserName { get; set; }

        [Display(Name = "用户余额")]
        public string Yong_HYE { get; set; }


        [Display(Name = "读数本次")]
        public float Ben_QDS { get; set; }

        [Display(Name = "缴费金额")]
        public float Jiao_FJE { get; set; }


        [Display(Name = "缴费类型")]
        public float Jiao_FLX { get; set; }

        [Display(Name = "缴费状态")]
        public int Jiao_FZT { get; set; }

    }
}

